export function getCurrentAuthority() {
  return ["admin"]; //当是 user权限时，看不到表单菜单的；当是 admin权限时，是可以看到表单菜单的
}

export function check(authority) {
  const current = getCurrentAuthority();
  return current.some(item => authority.includes(item));
}

export function isLogin() {
  const current = getCurrentAuthority();
  return current && current[0] !== "guest";
}
